<div *ngIf="messages.length">
  <h2>Messages</h2>
  <button class="清理" (click)="clear()">clear</button>
  <div *ngFor='let message of messages'> {{message}} </div>
</div>
